package interfaz;

import java.awt.*;
import javax.swing.*;

public class Instrucciones extends JPanel {

    static final public int alto = 700;
    static final public int ancho = 800;
    static final private int altoBoton = 50;
    static final private int anchoBoton = 100;
    JButton volver = null;

    public Instrucciones() {
        volver = new JButton("Volver");
        setLayout(null);
        setBackground(Color.black);

        volver.setSize(anchoBoton, altoBoton);
        volver.setLocation(17, alto - altoBoton - 40);
        volver.setBackground(Color.PINK);

        add(volver);

        setVisible(false);
    }

    public void paintComponent(Graphics g) {
        g.drawImage(Imagenes.fondo_negro, 0, 0, this);
        g.drawImage(Imagenes.fondo_instruccion, ancho / 2 - Imagenes.fondo_instruccion.getWidth(null) / 2, 0, this);
    }

    public JButton getVolver() {
        return volver;
    }
}
